<%@page contentType="text/html;charset=UTF-8" language="java" %>>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>声明变量和方法</title>
</head>
    <%!
        public int count;
        public String info(){
            return"你个小马喽";
        }
        %>

<%
    out.println(count++);
%>
<br/>
<%
    out.println(info());
%>

</body>
</html>